﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace ProjectDirector.Models
{
    public class AccessRight
    {
        private List<MembershipRole> roles = new List<MembershipRole>();       

        public List<MembershipRole> UserRoles()
        {
            foreach (string s in Roles.GetAllRoles())
                roles.Add(new MembershipRole() { RoleName = s });
            return roles;
        }
    }

    public class MembershipRole
    {
        public string RoleName { get; set; }
    }
}